home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / C2SND201.ZIP / CONV2SND.HST < prev    next >
Text File  |  1994-09-11  |  6KB  |  143 lines

  1. CONVERT TO SOUND 2.01, by Kenneth Udut, revisions by Jeffrey L. Hayes
  2. September 11, 1994
  3.  
  4. Revision list:
  5. --------------
  6.  
  7. September 22, 1994
  8. 2.01
  9.         FOURTH PUBLIC RELEASE
  10.  
  11.         New Features Include:
  12.         * Snd2wav now recognizes the new-format .snd files produced by the 
  13.           2500-series.
  14.         * The documentation now describes the new .snd format.  Other minor 
  15.           changes made.
  16.  
  17.  
  18. June 22, 1994
  19. 2.00
  20.         THIRD PUBLIC RELEASE (this release modified by Jeffrey L. Hayes)
  21.  
  22.         Bug fixes:
  23.         * The sample size problem is now fixed.  "Unexpected end-of-file" 
  24.           errors should no longer occur, and it is no longer necessary to 
  25.           delete noise at the end of the file.
  26.         * The starting offset of the sound data has been corrected.
  27.         * A full disk is now detected.
  28.         * The program would crash if a nondigit was entered for the 
  29.           sampling rate.  This has been fixed.
  30.         * The length of the sound name has been corrected.
  31.  
  32.         New Features Include:
  33.         * RIFF WAVE file headers are now understood.  For .wav files only, 
  34.           the sampling rate can be determined from the header, and the 
  35.           header can be deleted, so that the file is converted without 
  36.           beginning noise.  Most 8-bit mono .wav's can be converted 
  37.           directly.  A separate preprocessor is provided to convert 16-bit 
  38.           or stereo .wav's to 8-bit mono before conversion.
  39.         * A separate program, Snd2wav, is provided to convert .snd files to 
  40.           .wav.
  41.         * Ability to specify the output filename.  The output file now 
  42.           defaults to the same drive and path as the input file, but with 
  43.           an .snd extension.  It is no longer necessary to rename the 
  44.           output file to something meaningful after running the program.
  45.         * Specifying the sound name is now optional.  If no sound name is 
  46.           given, a null name will be used.
  47.         * Giving your name when running the program is now optional.
  48.         * The source code has been beautified and the line length limited 
  49.           to 80 spaces.  The indentation has been made consistent, and 
  50.           procedures are clearly marked.
  51.         * The documentation has been extensively revised and now includes a 
  52.           much more detailed description of the .snd file format.
  53.  
  54.         Problems left: There should be a command-line interface for use in 
  55.         batch files.
  56.  
  57.  
  58. February 3, 1993
  59. 1.98
  60.         SECOND PUBLIC RELEASE (last by Kenneth Udut)
  61.  
  62.         New Features Include:
  63.         * Changeable Sampling Rate (5500, 11000, 22000)
  64.         * Ability to add the sound "name" (not 'filename')
  65.           in a form readable by DeskMate SOUND.PDM
  66.         * An ASK_QUESTIONS section of the source code, which
  67.           will allow me (or you) to ask questions of the end_user.
  68.  
  69.         Problems left: Interface is 'hacked together' - not smooth, consistant
  70.         or anything.  Also, I haven't yet found a way to set the sample size
  71.         EXACTLY -=- I'm hoping for a word from you or another for help!
  72.         Everything else seems okay, at the moment.
  73.  
  74.  
  75. 1.97    Implemented SAMPLE_RATE change.  Updated Documentation.
  76. 1.91    Changing READ to READLN solved problem of wierd "READ"'s.
  77. 1.78 - 1.90
  78.  
  79.         Added "questions", like "What's the sampling rate" and such.
  80.         Had trouble, as the program wanted to answer the questions FOR me
  81.         with 'garbage' replies.
  82.  
  83.  
  84. January 27, 1993
  85. 1.77:
  86.         FIRST PUBLIC RELEASE
  87.  
  88.         Files from size 0 up to the MAXIMUM size allowed by DeskMate Sound
  89.         can successfully be converted.
  90.  
  91.         Here's the magic sequence:
  92.  
  93. IF sample_size < 256 THEN samp_char_1 := CHR(sample_size)
  94.    ELSE BEGIN
  95.         IF sample_size < 65536 THEN
  96.            BEGIN
  97.              samp_char_1 := CHR(sample_size div 256);
  98.              samp_char_2 := CHR((sample_size div 256) + 1);
  99.              samp_char_3 := CHR(0);
  100.            END
  101.      ELSE
  102.         BEGIN
  103. samp_char_1 := CHR(sample_size div 65536);
  104. samp_char_2 := CHR(sample_size div 65536);
  105. samp_char_3 := chr((sample_size div 65536) + 1);
  106.          END;
  107.          END;
  108.  
  109. WRITE(header_part, samp_char_1, samp_char_2, samp_char_3);
  110.  
  111.         In other words, a file less than 256 bytes is encoded by just using
  112.         the corresponding ASCII code.  A file from 257 bytes to 65535 bytes
  113.         uses TWO bytes to signify file size.  A file from 65536 onward and
  114.         upward uses THREE bytes to signify file size!
  115.  
  116.         I'm not an engineer, and this whole idea is just a little beyond me,
  117.         but the power of HACK helped me immensely here!
  118.  
  119.  
  120. January 27, 1993
  121. 1.38 - 1.76: Another problem.
  122.  
  123.         Struggled to get CONV2SND to create, in the header, the correct
  124.         bytesize of the sound file.  I'm bad at math, and I hadn't much
  125.         of a clue as to how Tandy did it.
  126.  
  127.         Somewhere around 1.56 or so, I changed the read/write byte by byte,
  128.         to BLOCKREAD, BLOCKWRITE, which speeded up the copying process
  129.         TREMENDOUSLY!  No CRC check, though.  I'm not advanced enough to do
  130.         that yet.
  131.  
  132. January 24, 1993
  133. 1.37:  first working copy.
  134.  
  135.        Also, there is a "click" at the beginning of the sound file.  This
  136.        is merely the header of the ORIGINAL file, which can easily be
  137.        edited out.
  138.  
  139. January 14 - 24, 1993
  140. 1.00 to 1.36: struggled to get a working copy of this program going!
  141.  
  142. January 14, 1993 - start of the programming for CONV2SND!
  143.